package com.example.interdemo618lw;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Toast;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        String str=getIntent().getStringExtra("info");
        int num=getIntent().getIntExtra("num",0);
        Toast.makeText(this, num+"--"+str, Toast.LENGTH_SHORT).show();
    }
}
